package com.ly.oa.service.communicate.impl;

import java.util.List;

import com.ly.core.service.impl.BaseServiceImpl;
import com.ly.oa.dao.communicate.MailBoxDao;
import com.ly.oa.model.communicate.MailBox;
import com.ly.oa.service.communicate.MailBoxService;

public class MailBoxServiceImpl extends BaseServiceImpl<MailBox> implements MailBoxService{
	private MailBoxDao dao;
	
	public MailBoxServiceImpl(MailBoxDao dao) {
		super(dao);
		this.dao=dao;
	}

	@Override
	public Long CountByFolderId(Long folderId) {
		return dao.CountByFolderId(folderId);
	}

	public List<MailBox> findByFolderId(Long folderId){
		return dao.findByFolderId(folderId);
	}

	@Override
	public void deleteByUserId(Long userId) {
		dao.deleteByUserId(userId);
	}
	
	
}